<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
    <title>补签记录</title>
</head>
<body>

<script type="text/javascript" src="./$.js"></script>
<script>
    require(['!this.js'], $$.load)
</script>
</body>
</html>


<!--tpl部分-->
<template type="text/html" data-name="this.htm">

    <div class="yuanshi" v-if="data">
        <div class="timeline" v-if="data.list.length!=0">
            <div class="today">
                <div class="point"></div>
                <div class="today_time">补签记录</div>
            </div>

            <div class="item" v-for="bqitem in data.list">
                <div v-if="bqitem.status==0">
                    <img src="../$res/imgers/buqian_wait.png">
                </div>
                <div v-if="bqitem.status==1">
                    <img src="../$res/imgers/buqian_agree.png">
                </div>
                <div v-if="bqitem.status==-1">
                    <img src="../$res/imgers/buqian_refuse.png">
                </div>

                <div class="workinfo">
                    <div class="left">
                        <div class="lineone">
                            <div class="lineone_check">{{bqitem.time}}</div>
                        </div>
                        <div class="lineone">
                            <span>{{bqitem.reason}}</span>
                        </div>
                    </div>
                    <div class="right" v-if="bqitem.sp_name">{{bqitem.sp_name}}</div>
                    <div class="right" v-else>审核中</div>
                </div>
                <div class="line"></div>
            </div>
        </div>
        <div class="no_con" v-else>
            <img src="/rs/kaoqin/$res/imgers/no.png" alt="">
            <p>厉害哦！没有补签记录~</p>
        </div>
    </div>

</template>

<!--JS部分-->
<script data-name="this.js">

    function get_data() {
        $$.ajax({
            url: "/kaoqin/apply/lists_supply",
            data: {},
            result: {
                $200: function (ret) {
                    weui.loading().hide();
                    $$.m.data = ret.data;
                }
            }
        });
    }
    require('../$res/js/common');
    module.exports = {
        template: require('!this.htm'),
        methods: {},
        loaded: function () {
            $$.m = {
                data: false
            };
        },
        mounted: function () {
            get_data();
        }
    };
</script>